const path = require("path");
const marked = require("marked");
const renderer = new marked.Renderer();
module.exports={
	entry:'./blog/main.js',
	output:{
		path:path.resolve(__dirname,"dist"),
		filename:"bundle.js"
	},
    module: {
        rules: [
		{
			test: /\.html$/i,
			loader: 'html-loader',
		},
		{
            test: /\.md$/,
            use: [
                {
                    loader: "html-loader"
                },
                {
                loader: "markdown-loader",
					options: {
                        pedantic: true,
                        renderer
                    }
                }
                ]
            }]
    }
}
